const formatTime = date => {
  const year = date.getFullYear()
  const month = date.getMonth() + 1
  const day = date.getDate()
  const hour = date.getHours()
  const minute = date.getMinutes()
  const second = date.getSeconds()

  return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
}

const formatNumber = n => {
  n = n.toString()
  return n[1] ? n : '0' + n
}

const assetDatas = [{
  title: '大林寺桃花·李白',
  // model: 'https://iguoxing.oss-cn-beijing.aliyuncs.com/ar/ali/lushan/libai/libai-sing.glb',
  model:"/images/biaozhun2.glb",
  sound: 'https://iguoxing.oss-cn-beijing.aliyuncs.com/ar/ali/lushan/libai/Assets/taohua.mp3'
}, {
  title: '题西林壁·李白',
  // model: 'https://iguoxing.oss-cn-beijing.aliyuncs.com/ar/ali/lushan/libai/Assets/tixilingbi.glb',
  model:"https://txcy.oss-cn-hangzhou.aliyuncs.com/hongljing.glb",
  // sound: 'https://iguoxing.oss-cn-beijing.aliyuncs.com/ar/ali/lushan/libai/Assets/tixilinbi.mp3'
  sound: 'https://txcy.oss-cn-hangzhou.aliyuncs.com/dongmenglu.mp3'
}, {
  title: '望庐山瀑布·李白',
  // model: 'https://iguoxing.oss-cn-beijing.aliyuncs.com/ar/ali/lushan/glb/ponu01.glb',
  model:"https://txcy.oss-cn-hangzhou.aliyuncs.com/biaozhun.glb",
  // sound: 'https://iguoxing.oss-cn-beijing.aliyuncs.com/ar/ali/lushan/glb/wanglushan.mp3'
  sound: 'https://txcy.oss-cn-hangzhou.aliyuncs.com/jing.mp3'
}, ]

module.exports = {
  formatTime: formatTime,
  assetDatas: assetDatas
}
